package com.tools.model.params;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Column;
import javax.validation.constraints.NotBlank;
@Data
public class InfoParams {
    @ApiModelProperty("姓名")
    @Column(name = "name")
    @NotBlank(message = "name不为空")
    private String name;

    @ApiModelProperty("性别")
    @Column(name = "sex")
    @NotBlank(message = "sex不为空")
    private String sex;

    @ApiModelProperty("年龄")
    @Column(name = "ages")

    private Integer ages;

    @ApiModelProperty("邮箱")
    @Column(name = "email")
    @NotBlank(message = "email不为空")
    private String email;

    @ApiModelProperty("科室")
    @Column(name = "section")
    private String section;

    @ApiModelProperty("医院")
    @Column(name = "hospital")
    private String hospital;
}
